package org.lc.stk.model.user.permission;

import org.hibernate.annotations.Comment;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;

/**
 * 课程权限
 */
@Entity
@Table(name = "course_permission")
@Comment("课程权限")
public class CoursePermission extends Permission {
    
    @Column
    @Comment("是否可以创建课程")
    private Boolean canCreate = false;

    @Column
    @Comment("是否可以编辑课程")
    private Boolean canEdit = false;

    @Column
    @Comment("是否可以删除课程")
    private Boolean canDelete = false;

    @Column
    @Comment("是否可以查看课程")
    private Boolean canView = false;

    @Column
    @Comment("是否可以管理课程章节")
    private Boolean canManageChapters = false;

    @Column
    @Comment("是否可以管理课程知识点")
    private Boolean canManageKnowledgePoints = false;

    public Boolean getCanCreate() {
        return canCreate;
    }

    public void setCanCreate(Boolean canCreate) {
        this.canCreate = canCreate;
    }

    public Boolean getCanEdit() {
        return canEdit;
    }

    public void setCanEdit(Boolean canEdit) {
        this.canEdit = canEdit;
    }

    public Boolean getCanDelete() {
        return canDelete;
    }

    public void setCanDelete(Boolean canDelete) {
        this.canDelete = canDelete;
    }

    public Boolean getCanView() {
        return canView;
    }

    public void setCanView(Boolean canView) {
        this.canView = canView;
    }

    public Boolean getCanManageChapters() {
        return canManageChapters;
    }

    public void setCanManageChapters(Boolean canManageChapters) {
        this.canManageChapters = canManageChapters;
    }

    public Boolean getCanManageKnowledgePoints() {
        return canManageKnowledgePoints;
    }

    public void setCanManageKnowledgePoints(Boolean canManageKnowledgePoints) {
        this.canManageKnowledgePoints = canManageKnowledgePoints;
    }
}